package com.ykq.sso.feign;

import com.ykq.pojo.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @program: qy151-education-parent
 * @description:
 * @author: 闫克起
 * @create: 2022-08-29 10:41
 **/
@FeignClient(value = "education-permission")
public interface PermissionFeign {

    @GetMapping("/api/permission/user/findByUsername")
    public User findByUsername(@RequestParam String username);

    @GetMapping("/api/permission/permission/selectPermissionByUserid")
    List<String> findPermissionByUserid(@RequestParam String userid);
}





















